using Acme.BookStore.PurchaseDto.ReceiptOrderDto;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.AspNetCore.Mvc;

namespace Acme.BookStore.Controllers
{
    [Route("api/app/receipt-order")]
    [ApiController]
    public class ReceiptOrderController : AbpController
    {
        private readonly IReceiptOrderService _service;

        public ReceiptOrderController(IReceiptOrderService service)
        {
            _service = service;
        }

        [HttpPost("by-conditions")]
        public Task<PagedResultDto<ReceiptOrderDto>> GetListByConditionsAsync([FromBody] ReceiptOrderQueryDto input)
        {
            return _service.GetListByConditionsAsync(input);
        }
    }
} 